/*
 * ForSaleBO.java
 *
 * Created on March 28, 2007, 9:13 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.mystuff.sales;

/**
 *
 * @author Gabe
 */
public class ForSaleBO extends PhysicalBO {
    
    private boolean newOrUsed;
    private String Id;
    private boolean dirty = false;   
    private boolean alreadyInDatabase = false;
    private String productID;
  
    
    /** Creates a new instance of ForSaleBO */
    ForSaleBO() {
    }
    
    /** Creates a new instance of TransactionBO with the primary key product ID*/
    ForSaleBO(String productID) {
        setProductID(productID);
        setDirty(true);
    }
    
    /* Get the physical products type..meaning if it is new or used
     */
    

    public String getId() {
        return Id;
    }

    public void setId(String Id) {
        this.Id = Id;
    }

    public boolean isDirty() {
        return dirty;
    }

    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }

    public boolean isAlreadyInDatabase() {
        return alreadyInDatabase;
    }

    public void setAlreadyInDatabase(boolean alreadyInDatabase) {
        this.alreadyInDatabase = alreadyInDatabase;
    }

    public String getProductID() {
        return productID;
    }

    public void setProductID(String productID) {
        this.productID = productID;
    }

    public boolean isNewOrUsed() {
        return newOrUsed;
    }

    public void setNewOrUsed(boolean newOrUsed) {
        this.newOrUsed = newOrUsed;
    }

 
    
}
